/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ooprinciples.inheritancealternative.Impl;

import za.ac.cput.ooprinciples.inheritance.CellPhone;

/**
 *
 * @author Abduraghmaan
 */
public class CellPhoneImpl implements CellPhone{

   
    private String name;
    private String network;
    private int cellNumber;
    private double subscriptionFee;

    @Override
    public int getCellNumber() {
        return cellNumber;
    }
     @Override
    public void setCellNumber(int cellNumber) {
        this.cellNumber = cellNumber;
    }
    @Override
    public String getName() {
        return name;
    }
    @Override
    public void setName(String name) {
        this.name = name;
    }
    @Override
    public String getNetwork() {
        return network;
    }
    @Override
    public void setNetwork(String network) {
        this.network = network;
    }

    @Override
    public double getSubscriptionFee() {
        return subscriptionFee;
    }

    @Override
    public void setSubscriptionFee(double subscriptionFee) {
        this.subscriptionFee = subscriptionFee;
    }

    
    @Override
    public double calcBalance(double currBalance)
    { 
        double balance;
        balance = currBalance - subscriptionFee;
        return balance;
    }
    
     @Override
    public boolean validateFee() {
         
         if(subscriptionFee < 0)
            return false;
         else 
             return true;
    }
    
   
    
}
